package org.edu.modules.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.edu.modules.system.entity.VeBaseAppUser;

import java.util.List;
import java.util.Map;

import org.edu.common.api.vo.Result;

public interface IVeBaseAppUserService extends IService<VeBaseAppUser> {

    VeBaseAppUser getUserByPhone(String phone);

    VeBaseAppUser getUserByName(String userName);

    VeBaseAppUser getAppUserByUserId(String userId);

    List<Map<String, Object>> getBaseSysRoleList(String userId, String appId);

    List<Map<String, Object>> getBaseSysMenuList(String userId, String appId, String roleId);

    List<Map<String, Object>> getBaseAppManageList(String userId, String appId, String roleId);

    List<Map<String, Object>> getBaseServiceList(String userId);

    VeBaseAppUser getUserByToken(String token);

    Result getSrategy(String userId);

    Result addUserAccessAndGetMessage(String userId, String password);

    Result getSysRoleByUserIdAndAppId(String userId, String appId);

    int addUserAccess(String userId, String pwd, String userName, String opr, String status);

    Map getTeacherByUserId(String userId);

    Map getTeacherByGH(String gh);

    Map getStudentByUserId(String userId);

    Map getStudentByXH(String xh);

    //根据工号获取专业组等信息
    Map getTeacherDeatilByGH(String gh);

    //根据学号获取年级，班级，专业等信息
    Map getStudentDeatilByXH(String xh);

    VeBaseAppUser getAppUserByUsername(String username);

    List<Map<String, Object>> getVeBaseSysConfig();

    List<Map<String, Object>> queryVeBaseDictionary();

    Result getAppManageByAppId(String appId);

}
